package com.example.demo.controller.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class WebController {


    @GetMapping("index")
    public String demo(Model model) {
        model.addAttribute("hello", "华为");
        return "demo";
    }

    @GetMapping("index2")
    public String demo2(Model model) {
        model.addAttribute("hello", "百度");
        return "demo2";
    }

    @GetMapping("index3")
    public String demo3(Model model) {
        model.addAttribute("hello", "阿里");
        return "demo3";
    }
}
